From: Richard M. Stallman Date: Mon, 22 Mar 1993 19:50:35 +0000 (+0000) Subject: Decide automatically whether to use COFF or ELF. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96742 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a100548014c325e06d360997c9a305932d909cfc;p=emacs.git Decide automatically whether to use COFF or ELF. --- diff --git a/src/s/dgux.h b/src/s/dgux.h index 437e1106f78..47f5e2f6952 100644 --- a/src/s/dgux.h +++ b/src/s/dgux.h @@ -118,11 +118,21 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* If your system uses COFF (Common Object File Format) then define the preprocessor symbol "COFF". - DGUX can use either COFF or ELF. To use ELF format, define ELF. */ + DGUX can use either COFF or ELF; the default is ELF. + To compile for COFF (or BCS) use the TARGET_BINARY_INTERFACE + environment variable. */ -#ifndef ELF +#if defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) +#undef ELF +#ifndef COFF #define COFF -#endif +#endif /* COFF */ +#else /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */ +#undef COFF +#ifndef ELF +#define ELF +#endif /* ELF */ +#endif /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */ #ifndef COFF /* People will probably find this apparently unreliable till the NFS dumping bug is fixed. */